package org.dg.iag.conf;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class ApplicationProperties {
	
	public static Properties properties;
	
	static {
		properties = new Properties();
		try {
			File f = new File(".");
			System.out.println( f.getAbsolutePath() + "asdasdasdasdasd" );
			properties.load( new FileInputStream("settings/application.properties"));
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	
	

	public final static String APP_ABSOLUTE_PATH	= properties.getProperty("app_absolute_path", "file:///home/alex/workspace_iati_other/iati_explorer/");
	public final static String MY_SERVER_PORT			= properties.getProperty("my_server_port","8182");
	public final static String EXIST_REST	= properties.getProperty("exist_rest","http://localhost:8080/exist/rest/db");
}
